package ar.com.photo_admin.taglibs

class NotificationTagLib {

	def springSecurityService
	
	def imageNotifications = { attrs, body ->				
		if (springSecurityService.getCurrentUser().hasUnreadNotifications()) {
			out << """<img alt="" src="${resource(dir:'images',file:'email-alert-icon_m.png')}"></img>"""
		}
		else {
			out << """<img alt="" src="${resource(dir:'images',file:'email-validated-icon_m.png')}"></img>"""
		}
	}		
}
